package cn.vire.electric.simulation;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication(scanBasePackages = "cn.vire")
@MapperScan(basePackages = "cn.vire.electric.simulation.dao")
@EnableAsync
@Slf4j
@EnableTransactionManagement
@EnableScheduling
public class MainApplication {

    public static void main(String[] args) {
        SpringApplication springApplication = new SpringApplication(MainApplication.class);

//        springApplication.setWebApplicationType(WebApplicationType.NONE);
        springApplication.run(args);
        log.debug("启动成功");
    }

}
